//
//  historyViewController.m
//  singlebreath
//
//  Created by Eric van Riet Paap on 17-10-08.
//  Copyright 2008 __MyCompanyName__. All rights reserved.
//

#import "historyViewController.h"


@implementation historyViewController



-(id)init {
	self = [super init];
	self.tabBarItem = [[UITabBarItem alloc] initWithTabBarSystemItem:UITabBarSystemItemHistory tag:0]; 
	return self;
}


- (void)loadView {
	// create and configure the view
	myView = [[UIView alloc] initWithFrame:CGRectMake(0, 18, 320, 480)]; //initilize the view    
	myView.autoresizesSubviews = YES;              //allow it to tweak size of elements in view 
	self.view = myView;	

	background = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"TrainingBackground.png"]];
	[self.view addSubview:background];
	
	//myTable = [[HistoryViewController2 alloc] initWithStyle:0];
	//[self.view addSubview:myTable];

	/*
	myText = [[UILabel alloc] initWithFrame:CGRectMake(0, 18, 320, 480 - 18 - 20)]; //XXX remove hardcoding, subtracting statusbar en navbar
	myText.backgroundColor = [UIColor clearColor];
	myText.textColor = [UIColor whiteColor];
	myText.textAlignment = UIBaselineAdjustmentAlignCenters;
	myText.text = @"History not here yet";
	[self.view addSubview:myText];
    */
}


/*
 If you need to do additional setup after loading the view, override viewDidLoad.
- (void)viewDidLoad {
}
 */


- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
	// Return YES for supported orientations
	return (interfaceOrientation == UIInterfaceOrientationPortrait);
}


- (void)didReceiveMemoryWarning {
	[super didReceiveMemoryWarning]; // Releases the view if it doesn't have a superview
	// Release anything that's not essential, such as cached data
}


- (void)dealloc {
	[super dealloc];
}


@end
